import 'package:lishopflu/base/controller_import.dart';

class LoginCtl extends BaseController{

  final controller1 = TextEditingController().obs;
  final controller2 = TextEditingController().obs;
  final globalKey = GlobalKey<FormState>().obs;

  @override
  void onFirst() {
    controller1.value.addListener(() {

    });
  }

  @override
  void onDestroy() {

  }

  void login (){
    if (globalKey.value.currentState.validate()) {

    }
  }

  void toRegister() => Get.toNamed(AppPages.CHANGE_PHONE);

  void toMain() => Get.offAllNamed(AppPages.MAIN);
}